<form action="#" class="am-form">
    <fieldset>
        <legend>群公告</legend>
        <div class="form_content">
            <div class="input">
                <textarea minlength="0" maxlength="500" rows="10" placeholder="请输入公告内容"></textarea>
            </div>
            <div class="button">
                <button type="button" class="am-btn am-btn-primary btn-board">保存</button>
            </div>
            <div class="clear"></div>
        </div>
    </fieldset>
</form>

<script>
    // 等待一切就绪
    waitOk(function() {
        if (!GroupUtil.group) return;
        $("textarea").html(GroupUtil.group.note || "");
    });

    $(".btn-board").click(function() {
        var s = $("textarea").val().trim();
        startLoading();
        CMD.set_group_board(GroupUtil.group.id, s, function() {
            stopLoading();
        });
    });
</script>
   